import request from '../../http'

const URL = {
	PAYROLL_SELECT_H5: '/payroll/selectH5',
	PAYROLL_RECORDS: '/payroll/payrollRecords'
}

// 查询
export const postPayrollSelcetH5 = ({ spmId, userAccount, code, state }) =>
	request(URL.PAYROLL_SELECT_H5, 'POST', { spmId, userAccount, code, state })

// 发薪记录
export const postPayrollRecords = ({ code, state }) =>
	request(URL.PAYROLL_RECORDS, 'POST', { code, state })
